home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / db / DBField.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.3 KB  |  59 lines

  1. #ifndef _DBFIELD_H_
  2. #define _DBFIELD_H_
  3.  
  4. #include <objc/Object.h>
  5.  
  6. #ifndef _DBTYPES_H_
  7. #include "DBTypes.h"
  8. #endif
  9.  
  10. #ifndef _PROPERTIES_H_
  11. #include "DBProperties.h"
  12. #endif
  13.  
  14. @interface DBField : Object <DBProperties>
  15. {
  16.    id <DBEntities>  entity;
  17.    BOOL             isKey;
  18.    BOOL             isReadOnly;
  19.    const char      *propertyName;
  20.  
  21.    char             length,
  22.                     decimals,
  23.                    *stringValue,
  24.                    *modifiedStringValue;
  25.  
  26. }
  27.  
  28. - initWithName: (const char *) aName andLength: (char) aLength 
  29.    andDecimals: (char) someDecimals;
  30. - free;
  31. - setStringValue: (char *) aString;
  32. - (char *) stringValue;
  33. - (char) length;
  34.  
  35. -(int) compareWith: (char *) aString;
  36.  
  37. /* ------------------- Protocol "DBProperties" -------------------- */
  38. -(id <DBEntities>) entity;
  39. -(BOOL) isKey;
  40. -(BOOL) isReadOnly;
  41. -(BOOL) isSingular;
  42. -(BOOL) matchesProperty: (id <DBProperties>) aProperty;
  43. -(const char *) propertyName;
  44. -propertyType;
  45. -(BOOL) setName: (const char *) aName;
  46.  
  47. /* ----------------------- Private Methods ------------------------ */
  48. -setEntity: (id <DBEntities>) anEntity;
  49. -setIsKey: (BOOL) aFlag;
  50. -setIsReadOnly: (BOOL) aFlag;
  51.  
  52. /* --------------------------- Copying ---------------------------- */
  53. -copy;
  54.  
  55. @end
  56.  
  57. #endif
  58.  
  59.